package com.cnbbx.mybatis.definition;

public class Query {
    private Object value;
    private String property;
    private String propertyAs;
    private Where where;

    public Query(Object value, String property, String propertyAs, Where where) {
        this.value = value;
        this.property = property;
        this.propertyAs = propertyAs;
        this.where = where;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getPropertyAs() {
        return propertyAs;
    }

    public void setPropertyAs(String propertyAs) {
        this.propertyAs = propertyAs;
    }

    public Where getWhere() {
        return where;
    }

    public void setWhere(Where where) {
        this.where = where;
    }

    @Override
    public String toString() {
        return "Query{" + "property='" + property + "'" + ", propertyAs='" + propertyAs + "'" + ", where=" + where.toString() + ", value=' " + value + " '" + '}';
    }
}
